﻿using System;
using System.Collections.Generic;

namespace Rj.PersonnelVerification.Server.DataBaseContext.Entities
{
    /// <summary>
    /// 支付信息
    /// </summary>
    public partial class RegTbOpInvoicePaywayTime
    {
        /// <summary>
        /// 发票ID
        /// </summary>
        public long InvoiceId { get; set; }
        /// <summary>
        /// 收费流水号
        /// </summary>
        public long? ChargeNo { get; set; }
        /// <summary>
        /// 支付方式
        /// </summary>
        public int? Payway { get; set; }
        /// <summary>
        /// 支付方式名称
        /// </summary>
        public string? PaywayName { get; set; }
        /// <summary>
        /// 支付总金额
        /// </summary>
        public decimal? PayAmount { get; set; }
        /// <summary>
        /// 操作人员编码
        /// </summary>
        public int? OpCode { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime? OpTime { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int? Status { get; set; }
        /// <summary>
        /// 删除标记
        /// </summary>
        public bool IsDelete { get; set; }
        /// <summary>
        /// 创建人员
        /// </summary>
        public int? CreatedBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedDate { get; set; }
        /// <summary>
        /// 修改人员
        /// </summary>
        public int? UpdateBy { get; set; }
        /// <summary>
        /// 修改日期
        /// </summary>
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 支付流水号
        /// </summary>
        public int SerialNo { get; set; }
        /// <summary>
        /// 医院编码
        /// </summary>
        public int HospitalCode { get; set; }
        /// <summary>
        /// 现金退款原因
        /// </summary>
        public string? CashRefundReason { get; set; }
        /// <summary>
        /// 支付退款标识，1支付 2退款
        /// </summary>
        public int? PayOrRefund { get; set; }
        /// <summary>
        /// 移动支付第三方订单号，商户号
        /// </summary>
        public string? PayOrderNo { get; set; }
        /// <summary>
        /// 支付支付第三方支付流水号
        /// </summary>
        public string? ReturnOrderNo { get; set; }
        /// <summary>
        /// 移动支付退款订单号，商户退单号
        /// </summary>
        public string? RefundOrderNo { get; set; }
        /// <summary>
        /// 移动支付退款第三方流水号
        /// </summary>
        public string? RefundReturnOrderNo { get; set; }
        /// <summary>
        /// 移动支付退款金额
        /// </summary>
        public decimal? MrefundAmout { get; set; }
        /// <summary>
        /// 移动支付退款前总金额
        /// </summary>
        public decimal? MpayTotal { get; set; }
        /// <summary>
        /// 移动支付退款后剩余金额
        /// </summary>
        public decimal? MremainingAmout { get; set; }
        /// <summary>
        /// 移动支付平台支付方式
        /// </summary>
        public string? MpayType { get; set; }
        /// <summary>
        /// 移动支付退款成功标记 1退款中 2退款成功
        /// </summary>
        public int? MrefundFlag { get; set; }
    }
}
